package com.game.chessnew;

import javax.swing.*;
import java.awt.*;

public class ChessFrame extends JFrame {
    public ChessFrame() {
        setTitle("国际象棋");
        setSize(640, 640);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setLocationRelativeTo(null);

        ChessPanel chessPanel = new ChessPanel();
        add(chessPanel, BorderLayout.CENTER);
    }

    public static void main(String[] args) {
        SwingUtilities.invokeLater(() -> {
            ChessFrame frame = new ChessFrame();
            frame.setVisible(true);
        });
    }
}